<%@ page import="rentadomus.Dwelling" %>



<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'bedrooms', 'error')} required">
	<label for="bedrooms">
		<g:message code="dwelling.bedrooms.label" default="Bedrooms" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="bedrooms" type="number" min="1" value="${dwellingInstance.bedrooms}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'baths', 'error')} required">
	<label for="baths">
		<g:message code="dwelling.baths.label" default="Baths" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="baths" type="number" min="1" value="${dwellingInstance.baths}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'interior', 'error')} required">
	<label for="interior">
		<g:message code="dwelling.interior.label" default="Interior" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="interior" type="number" min="1" value="${dwellingInstance.interior}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'kitchenType', 'error')} required">
	<label for="kitchenType">
		<g:message code="dwelling.kitchenType.label" default="Kitchen Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="kitchenType" from="${dwellingInstance.constraints.kitchenType.inList}" required="" value="${dwellingInstance?.kitchenType}" valueMessagePrefix="dwelling.kitchenType"/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'block', 'error')} required">
	<label for="block">
		<g:message code="dwelling.block.label" default="Block" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="block" type="number" value="${dwellingInstance.block}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'furnished', 'error')} ">
	<label for="furnished">
		<g:message code="dwelling.furnished.label" default="Furnished" />
		
	</label>
	<g:checkBox name="furnished" value="${dwellingInstance?.furnished}" />
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'idPlace', 'error')} required">
	<label for="idPlace">
		<g:message code="dwelling.idPlace.label" default="Id Place" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="idPlace" name="idPlace.id" from="${rentadomus.Place.list()}" optionKey="id" required="" value="${dwellingInstance?.idPlace?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: dwellingInstance, field: 'parkingSlots', 'error')} required">
	<label for="parkingSlots">
		<g:message code="dwelling.parkingSlots.label" default="Parking Slots" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="parkingSlots" type="number" value="${dwellingInstance.parkingSlots}" required=""/>
</div>

